﻿<Application
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:app="clr-namespace:MedLink2011"
    xmlns:helper="clr-namespace:MedLink2011.Helpers"
    xmlns:core="clr-namespace:MedLink2011.Core"
  xmlns:fx="clr-namespace:MedLink2011.Core"
    
  x:Class="MedLink2011.App"
  Startup="Application_Startup"
  UnhandledException="Application_UnhandledException">
    

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            	<ResourceDictionary Source="Assets/Styles.xaml" />
            	<ResourceDictionary Source="Assets/Themes/JetPack/CoreStyles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/JetPack/Brushes.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/JetPack/Fonts.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/JetPack/SdkStyles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/JetPack/Styles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/Cosmo/Styles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/Cosmo/CoreStyles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/Cosmo/SdkStyles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/MoreBrushes.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/TelerikStyles.xaml"/>
            	<ResourceDictionary Source="Assets/Themes/Accent/SdkStyles.xaml"/>
            	<ResourceDictionary>
            		<app:ApplicationResources x:Key="ApplicationResources" />
            		<app:NotOperatorValueConverter x:Key="NotOperatorValueConverter" />
            	</ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>

        	<!--<app:WebContextInstance x:Key="webContext" />-->
        	<helper:ImageConverter x:Key="imageConverter" />
            <helper:BmiConverter x:Key="bmiConverter" />
            <core:TextBoxVisibilityConverter x:Key="txtConverter" />
            
            <fx:VisibilityConverter x:Key="visibilityConverter" />
        	<fx:VisibilityConverter x:Key="invisibilityConverter" Inverse="true" />
        	<fx:UserConverter x:Key="requiresAuthConverter" RequiresAuthentication="true" />
        	<fx:UserConverter x:Key="requiresAdminConverter" RequiresAuthentication="true" RequiredRole="Admin" />
        	<fx:ImageLoader x:Key="bookCoverLoader" UriFormat="http://images.amazon.com/images/P/{0}.01._SCLZZZZZZZ_PU_PU-5_.jpg" />
        	<fx:Truncator x:Key="truncator" MaxWords="50" />
        </ResourceDictionary>
    </Application.Resources>

<!--<Application.ApplicationLifetimeObjects>
        <app:WebContext />
    </Application.ApplicationLifetimeObjects>-->
</Application>
